<h1>Listing businesses</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Contact person</th>
    <th>Description</th>
    <th>Address</th>
    <th>Zipcode</th>
    <th>X</th>
    <th>Y</th>
  </tr>

<% @businesses.each do |business| %>
  <tr>
    <td><%=h business.name %></td>
    <td><%=h business.contact_person %></td>
    <td><%=h business.description %></td>
    <td><%=h business.address %></td>
    <td><%=h business.zipCode %></td>
    <td><%=h business.X %></td>
    <td><%=h business.Y %></td>
    <td><%= link_to 'Show', business %></td>
    <td><%= link_to 'Edit', edit_business_path(business) %></td>
    <td><%= link_to 'Destroy', business, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New business', new_business_path %>